package com.xy.annotaion.handler.processor;

import com.xy.annotaion.handler.common.log.LogService;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
import org.springframework.stereotype.Component;

/**
 * @author Dell
 */
@Component
public class TestBeanDefinitionRegistryPostProcessorImpl implements BeanDefinitionRegistryPostProcessor, LogService {
    @Override
    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
        log(registry);
    }

    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
        log(beanFactory);
    }
}
